package com.chixing.controller;


import com.chixing.service.ICameraService;
import com.chixing.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author smith
 * @since 2025-05-27
 */
@RestController
@RequestMapping("/camera")
public class CameraController {
    @Autowired
    private ICameraService cameraService;

    @GetMapping("{cameraId}")
    public Result getById(@PathVariable("cameraId") Integer cameraId){
        return cameraService.getById(cameraId);
    }
}
